/*
 * @Description: 
 * @version: 
 * @Author: ZJC
 * @Date: 2023-10-25 15:49:00
 * @LastEditors: ZJC
 * @LastEditTime: 2023-10-25 15:59:20
 */

 
function parseAudioElementHtml(domElem, children, editor) {
    const src= domElem.getAttribute('data-src'); // 这些就是elem-html.ts自定义扩展存放的地方，可以根据需要自行扩展
    const height = domElem.getAttribute('data-height');
    const width = domElem.getAttribute('data-width');
    const myAudio = { // 这里的信息要和custom-types.ts一致
        type: 'audio',
        src,
        width,
        height,
        children: [{text: ''}]
    }
    return myAudio
}
const parseAudioHtmlConf = {
    selector: 'div[data-w-e-type="audio"]', // 这个就是elem-html.ts中第一个div里包含的信息
    parseElemHtml: parseAudioElementHtml,
}
 
export default parseAudioHtmlConf
